

$(document).ready(function() {
	var verifyUrl = $('#code_img').attr("src");
	$('#code_img').click(function() {
		$(this).attr('src', verifyUrl + '?' + Math.random());
	});
});

function CheckAgentLogin() {
	var nameStr = document.getElementById("login_username").value;
	if (nameStr == '') {
		alert("账号不能为空！");
		document.getElementById("login_username").focus();
		return false;
	}
	var password = document.getElementById("login_password").value;
	if (password == '') {
		alert("密码不能为空！");
		document.getElementById("login_password").focus();
		return false;
	}
	var checkcode = document.getElementById("code").value;
	if (checkcode == '') {
		alert("验证码不能为空！");
		document.getElementById("code").focus();
		return false;
	}
	return true;
}



